package controllers;

import play.mvc.Controller;
import play.mvc.With;
import resulttypes.FareVO;
import resulttypes.RouteRequestVO;

@With(Secure.class)
public class FareCalculator extends Controller {

    public static void calculateFare(final RouteRequestVO route) {
        renderJSON(new FareVO((route.distance/1000)*2.3,"€"));
    }
}